let fs = require("fs");
const path = require("path");
let arr = [];

module.exports = gui;



function gui(str){
    if(fs.statSync(str).isFile()){
        // 是文件
        arr.push(path.resolve(str));
        return false;
    }else{
        let read = fs.readdirSync(str);
        // 是文件夹
        for(let i of read){
            gui(path.join(str,i));
        }
    }
    return arr;
}